package com.haredot.mapper;

import com.haredot.dto.AdvertDTO;
import com.haredot.entity.Advert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdvertMapper  {
    List<AdvertDTO> findAdverts();

    int update(Advert advert);

    int save(Advert advert);

    int deleteById(Long id);

    int batchDeleteByIds(List<Long> ids);

    List<Advert> findAllAdvert(String sysRemark);
}